package io.geekidea.boot.allocation.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tencentcloudapi.cynosdb.v20190107.models.SaleRegion;
import io.geekidea.boot.common.BaseEntity;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@TableName("tb_allocation")
public class Allocation extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id",type = IdType.AUTO)
    private String id;
    @TableField("transferNum")
    private String transferNum;
    @TableField("areaOutId")
    private Integer areaOutId;
    @TableField("storesOutId")
    private Integer storesOutId;
    @TableField("areaInId")
    private Integer areaInId;
    @TableField("storesInId")
    private Integer storesInId;
    @TableField("checkUser")
    private Long checkUser;
    @TableField("completeTime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime completeTime;
    @TableField("materialTypeNum")
    private Integer materialTypeNum;
    @TableField("materialNum")
    private Integer materialNum;
    @TableField("money")
    private Integer money;
    @TableField("status")
    private String status;
    @TableField("creatorUser")
    private Long creatorUser;
    @TableField("creatorTime")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8",shape = JsonFormat.Shape.STRING)
    private LocalDateTime creatorTime;

    @TableField(exist = false)
    private String areaOutName;
    @TableField(exist = false)
    private String storesOutName;
    @TableField(exist = false)
    private String areaInName;
    @TableField(exist = false)
    private String storesInName;
    @TableField(exist = false)
    private String Acceptor;
    @TableField(exist = false)
    private String MakeSingle;

}
